import request from "@/utils/request";
export function teacherChangeStatus(teacherId, status) {
  return request({
    url: `/school/manager/account/teacher/changeStatus/${teacherId}/${status}`,
    method: "post",
  });
}
export function teacherChangeStatusPreCheck(teacherId) {
  return request({
    url: `/school/manager/account/teacher/changeStatus/preCheck/${teacherId}`,
    method: "get",
  });
}
// 学生-校验教师数量
export function checkTeacherNum(query) {
  return request({
    url: "/school/manager/account/checkTeacherNum",
    method: "get",
    params: query,
  });
}
// 查询列表
export function listPost_teacher(query) {
  return request({
    url: "/school/manager/account/teacher/list",
    method: "get",
    params: query,
  });
}
// 查询创建人列表
export function getCreatorList(query) {
  return request({
    url: "/school/manager/course/getCreatorList",
    method: "get",
    params: query,
  });
}

// 查询详细
export function getPost_teacher(postId) {
  return request({
    url: "/school/manager/account/teacher/" + postId,
    method: "get",
  });
}
// 教师-获取工作详细信息
export function teacherInfoAndWorkInfo(teacherId) {
  return request({
    url: "/school/manager/account/teacher/baseInfo/" + teacherId,
    method: "get",
  });
}
// 教师-获取教师主讲课程下的学生评价列表列表
export function getStuAppraise(teacherId, query) {
  return request({
    url: "/school/manager/account/teacher/studentEvaluationList/" + teacherId,
    method: "get",
    params: query,
  });
}

// 新增
export function addPost_teacher(data) {
  return request({
    url: "/school/manager/account/teacher",
    method: "post",
    data: data,
  });
}

//教师-导入列表
export function import_teacher(data) {
  return request({
    url: "/school/manager/account/teacher/import",
    method: "post",
    data: data,
  });
}
// 修改
export function updatePost_teacher(data) {
  return request({
    url: "/school/manager/account/teacher",
    method: "put",
    data: data,
  });
}

// 删除
export function delPost_teacher(postId) {
  return request({
    url: "/school/manager/account/teacher/remove/" + postId,
    method: "delete",
  });
}
// 密码重置
export function resetTeacherPwd(postId) {
  return request({
    url: "/school/manager/account/teacher/resetPwd/" + postId,
    method: "post",
  });
}
